#导包
from rest_framework import serializers
from myapp.models import Cate,User


class CateSer(serializers.ModelSerializer):

	class Meta:
		model = Cate
		fields = "__all__"


#用户类的序列器
class UserSer(serializers.ModelSerializer):

	class Meta:
		model = User
		fields = "__all__"




